package pratima.inheritance;

public class Child extends Parent{

	FinalClassWithoutChildren finalObject = new FinalClassWithoutChildren();
	public Child(String name, String id) {
		
		super(name, id);
		System.out.println("child contructor with name and Id");
	}
	
	public void sayHelloFromChild(String name) {
		
		System.out.println("Hello from child " +name);
		System.out.println("Name from parent " +super.getName());
		System.out.println("protected field Name value "+name);
	}
}
